package com.qfedu.yige.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qfedu.yige.pojo.BatterySwappingCabinet;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
@Mapper
public interface BatterySwappingCabinetMapper extends BaseMapper<BatterySwappingCabinet> {

    @Update("update Battery_Swapping_Cabinet set  subscribeable=subscribeable-1 where BSC_Id=#{BSCId}")
    public int subscribe(int BSCId);


    @Update("update Battery_Swapping_Cabinet set  subscribeable=subscribeable+1 where BSC_Id=#{BSCId}")
    public int cancelSubscribe(int BSCId);

}
